package com.haojiang.mh.service.entity;

import android.text.TextUtils;
import com.haojiang.mh.utils.MUtil;

/**
 * Created by ZapFive on 2019-05-25.
 * <p>
 * wuzhuang@mirahome.me
 */
public class SleepDurationBean {

    private String deep_duration_minute;
    private String light_duration_minute;
    private String rem_duration_minute;
    private String awake_duration_minute;

    public int getDeep_duration_minute() {
        return MUtil.INSTANCE.formatInt(deep_duration_minute);
    }

    public void setDeep_duration_minute(String deep_duration_minute) {
        this.deep_duration_minute = deep_duration_minute;
    }

    public int getLight_duration_minute() {
        return MUtil.INSTANCE.formatInt(light_duration_minute);
    }

    public void setLight_duration_minute(String light_duration_minute) {
        this.light_duration_minute = light_duration_minute;
    }

    public int getRem_duration_minute() {
        return MUtil.INSTANCE.formatInt(rem_duration_minute);
    }

    public void setRem_duration_minute(String rem_duration_minute) {
        this.rem_duration_minute = rem_duration_minute;
    }

    public int getAwake_duration_minute() {
        return MUtil.INSTANCE.formatInt(awake_duration_minute);
    }

    public void setAwake_duration_minute(String awake_duration_minute) {
        this.awake_duration_minute = awake_duration_minute;
    }

    public boolean isNull() {
        return TextUtils.isEmpty(deep_duration_minute + light_duration_minute + rem_duration_minute + awake_duration_minute);
    }

    @Override
    public String toString() {
        return "SleepDurationBean{" +
                "deep_duration_minute='" + deep_duration_minute + '\'' +
                ", light_duration_minute='" + light_duration_minute + '\'' +
                ", rem_duration_minute='" + rem_duration_minute + '\'' +
                ", awake_duration_minute='" + awake_duration_minute + '\'' +
                '}';
    }
}
